Skip to content

Conversation

antonbabenko
Copy link
Member

Description

Follow-up to #181 (I didn't have permissions to push to that branch) by @tiagovmvieira

Fixed and tested examples and merged multiple identical resources into one.

Resolves #181
Resolves #182

@bryantbiggs
Copy link
Member

I started to review but after looking at it for awhile, why not add these resources into a new sub-module here named log-delivery? the implementation is a bit clunky as its written, plus I believe you can send to n-number of destinations (not just 1 S3, 1 Cloudwatch, 1 Firehose)

Let me know - if not in agreement with that approach, I can finish the review here

@tiagovmvieira
Copy link

tiagovmvieira commented Oct 3, 2025

I started to review but after looking at it for awhile, why not add these resources into a new sub-module here named log-delivery? the implementation is a bit clunky as its written, plus I believe you can send to n-number of destinations (not just 1 S3, 1 Cloudwatch, 1 Firehose)

Let me know - if not in agreement with that approach, I can finish the review here

Hey @bryantbiggs

As far as I know you can only specify one delivery per service and not n. So in this case you can specify a single CloudWatch Log Group and/or a single S3 bucket and/or a single Firehose stream. I know it, cause I have implemented in my daily job.

I have considered it in here cause there's a bit of couplement, I mean, you need to configure the EventBus to be able to log the logs for those destinations. Please do check here, the provided example :)

Happy to discuss further if there's some things I have been missing so far :)

@antonbabenko
Copy link
Member Author

@bryantbiggs In general, it would be a good idea to create a submodule log-delivery, as you suggest (I hadn't considered it). However, I'm not fond of consuming a service module within another service module (EventBridge).

Additionally, only one instance of each log destination type can be added to EventBridge.

@bryantbiggs
Copy link
Member

bryantbiggs commented Oct 3, 2025

However, I'm not fond of consuming a service module within another service module (EventBridge).

No no, not embedding this new sub-module here. Users would define their eventbridge module configuration and then their log-delivery module configuration.

It just feels like a repeat of what has happened with flow logs where now we have to force users to make changes so that we can consolidate that logic in its own module that is then usable in conjunction with our various modules

@antonbabenko
Copy link
Member Author

@bryantbiggs Updated according to all of the suggestions, except for moving to a separate submodule (I don't have time for more work on this PR anymore). Please review again.

Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

@antonbabenko antonbabenko merged commit e1f974b into master Oct 4, 2025
17 checks passed
@antonbabenko antonbabenko deleted the feat-logging-181 branch October 4, 2025 12:25
antonbabenko pushed a commit that referenced this pull request Oct 4, 2025
## [4.2.0](v4.1.0...v4.2.0) (2025-10-04)

### Features

* Add EventBridge bus logging configuration ([#185](#185)) ([e1f974b](e1f974b))
@antonbabenko
Copy link
Member Author

This PR is included in version 4.2.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for event_bus logging?
4 participants